/**
 * 创建有巴class及辅助
 */
function btnYoubusActionClass() {
    var input = $("#inputArea").val();

    //输入框为空则放入默认值
    if(isBlank(input)){
        btnYoubusActionClassInit();

        //输入框有值则调用后台
    }else{
        var url = "http://127.0.0.1:5030/YB/youbusActionClass";

        $.ajax({
            url: url,
            type: 'post',
            async:false,
            dataType : "text",
            data:{
                input:input,
            },
            timeout:5000,
            success:function (data) {
                $("#outputArea").val(data);
                $("#outputArea").focus();
                $("#outputArea").scrollTop(0);
            },
        })
    }
}

function btnYoubusActionClassInit(){
    var info = "";
    info+= "actionName:XXX_XXX_XXX_ACTION\n";
    info+= "actionDesc:XXX描述信息\n";
    info+= "methodName:XXX_XXX_XXX\n";
    info+= "paramList:xxx1;xxx2;xxx3\n";
    info+= "paramClass:xxxParam\n";
    info+= "optType:1.grid 2.list 3.opt\n";
    info+= "dtoClass:xxxDto\n";
    $("#inputArea").val(info);
}


/**
 * 创建PO
 */
function btnYoubusPo() {
    var input = $("#inputArea").val();

    //输入框为空则放入默认值
    if(isBlank(input)){
        btnYoubusPoInit();

        //输入框有值则调用后台
    }else{
        var url = "http://127.0.0.1:5030/YB/youbusPo";

        $.ajax({
            url: url,
            type: 'post',
            async:false,
            dataType : "text",
            data:{
                input:input,
            },
            timeout:5000,
            success:function (data) {
                $("#outputArea").val(data);
                $("#outputArea").focus();
                $("#outputArea").scrollTop(0);
            },
        })
    }
}

function btnYoubusPoInit(){
    var info = "";
    info+= "tableName:TM_XXX_XXX_XXX_XXX\n";
    $("#inputArea").val(info);
}














































